package cn.vcjf.weapp.api.goods.entity;

import cn.vcjf.weapp.common.web.PageModel;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
    * 
    * </p>
 *
 * @author zhengzihang
 * @since 2018-09-25
 */
@TableName("vc_goods_info")
public class GoodsInfo extends PageModel<GoodsInfo> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 商品编号
     */
    private String goodsNo;

    /**
     * 商品名称
     */
    private String goodsName;

    /**
     * 商品描述
     */
    private String goodsDes;
    /**
     * 商品图片
     */
    private String goodsFilesId;

    /**
     * 以逗号隔开的商品标签
     */
    private String goodsLabel;

    /**
     * 商品品牌ID
     */
    private Integer goodsBrandId;

    /**
     * 商品分类ID
     */
    private Integer goodsTypeId;

    /**
     * 商品生产日期
     */
    private Date goodsProductDate;

    /**
     * 商品保质期
     */
    private Integer goodsQualityDate;

    /**
     * 商品状态
     */
    private Integer status;

    /**
     * 排序
     */
    private Integer sortNo;
    /**
     * 热门
     */
    private Integer hot;
    /**
     * 商品价格
     */
    private BigDecimal goodsPrice;

    /**
     * 已售份数
     */
    private Integer sellCount;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getGoodsNo() {
        return goodsNo;
    }

    public void setGoodsNo(String goodsNo) {
        this.goodsNo = goodsNo;
    }
    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }
    public String getGoodsDes() {
        return goodsDes;
    }

    public void setGoodsDes(String goodsDes) {
        this.goodsDes = goodsDes;
    }
    public String getGoodsLabel() {
        return goodsLabel;
    }

    public void setGoodsLabel(String goodsLabel) {
        this.goodsLabel = goodsLabel;
    }
    public Integer getGoodsBrandId() {
        return goodsBrandId;
    }

    public void setGoodsBrandId(Integer goodsBrandId) {
        this.goodsBrandId = goodsBrandId;
    }
    public Integer getGoodsTypeId() {
        return goodsTypeId;
    }

    public void setGoodsTypeId(Integer goodsTypeId) {
        this.goodsTypeId = goodsTypeId;
    }
    public Date getGoodsProductDate() {
        return goodsProductDate;
    }

    public void setGoodsProductDate(Date goodsProductDate) {
        this.goodsProductDate = goodsProductDate;
    }
    public Integer getGoodsQualityDate() {
        return goodsQualityDate;
    }

    public void setGoodsQualityDate(Integer goodsQualityDate) {
        this.goodsQualityDate = goodsQualityDate;
    }
    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
    public Integer getSortNo() {
        return sortNo;
    }

    public void setSortNo(Integer sortNo) {
        this.sortNo = sortNo;
    }

    public BigDecimal getGoodsPrice() {
        return goodsPrice;
    }

    public void setGoodsPrice(BigDecimal goodsPrice) {
        this.goodsPrice = goodsPrice;
    }

    public Integer getSellCount() {
        return sellCount;
    }

    public void setSellCount(Integer sellCount) {
        this.sellCount = sellCount;
    }

    public Integer getHot() {
        return hot;
    }

    public void setHot(Integer hot) {
        this.hot = hot;
    }

    public String getGoodsFilesId() {
        return goodsFilesId;
    }

    public void setGoodsFilesId(String goodsFilesId) {
        this.goodsFilesId = goodsFilesId;
    }

    @Override
    public void preInsert(){
        super.preInsert();
    }
    @Override
    public void preUpdate(){
        super.preInsert();
    }
    @Override
    public String toString() {
        return "GoodsInfo{" +
        "id=" + id +
        ", sysUserId=" + sysUserId +
        ", goodsNo=" + goodsNo +
        ", goodsName=" + goodsName +
        ", goodsDes=" + goodsDes +
        ", goodsLabel=" + goodsLabel +
        ", goodsBrandId=" + goodsBrandId +
        ", goodsTypeId=" + goodsTypeId +
        ", goodsProductDate=" + goodsProductDate +
        ", goodsQualityDate=" + goodsQualityDate +
        ", status=" + status +
        ", sortNo=" + sortNo +
        ", createUser=" + createUser +
        ", createTime=" + createTime +
        ", updateUser=" + updateUser +
        ", updateTime=" + updateTime +
        ", deleteFlag=" + deleteFlag +
        "}";
    }
}
